package com.tbit.uqbike.object.pojo;

import com.tbit.uqbike.object.value.Page;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 手工资金操作记录(MoneyOpeLog)实体类
 *
 * @author jing
 * @since 2020-11-20 13:36:33
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class MoneyOpeLog implements Serializable {
    private static final long serialVersionUID = -41597606212409066L;
    /**
     * 品牌id
     */
    private Integer accountId;
    /**
     * 资金类型
     */
    private Integer moneyType;
    /**
     * 变动类型
     */
    private Integer changeType;
    /**
     * 金额
     */
    private Integer money;
    /**
     * 操作时间
     */
    private Date operaTime;
    /**
     * 用户id
     */
    private Integer userId;
    /**
     * 用户手机号码
     */
    private String userPhone;
    /**
     * 操作用户id
     */
    private Integer accountUserId;
    /**
     * 操作用户手机号码
     */
    private String accountUserPhone;
    /**
     * 操作备注
     */
    private String operaRemark;
    /**
     * 开始时间
     */
    private Date startTime;
    /**
     * 结束时间
     */
    private Date endTime;
    /**
     * 开始页
     */
    private Integer pageNO;
    /**
     * 数量
     */
    private Integer rowCount;
    private Page page;
    /**
     * 区域加品牌
     */
    private List<Integer> areas;

    public MoneyOpeLog(Integer accountId, Integer moneyType, Integer changeType, Integer money, Date operaTime, Integer userId, String userPhone, Integer accountUserId, String accountUserPhone, String operaRemark) {
        this.accountId = accountId;
        this.moneyType = moneyType;
        this.changeType = changeType;
        this.money = money;
        this.operaTime = operaTime;
        this.userId = userId;
        this.userPhone = userPhone;
        this.accountUserId = accountUserId;
        this.accountUserPhone = accountUserPhone;
        this.operaRemark = operaRemark;
    }

    public MoneyOpeLog(Date startTime, Date endTime, List<Integer> areas) {
        this.startTime = startTime;
        this.endTime = endTime;
        this.areas = areas;
    }
}